package com.lantu.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("teacher")
public class Teacher {
    @TableId(value = "id",type = IdType.AUTO)
    private String id;
    private String name;
    private String password;
    private Integer tno;  // 工号
    private String gender;
    private String telephone;
    private String address;
    private String quanxian;
    private Integer teachernum;
    private String zhicheng;

    public String getPassword() {
        return password = "".equals(password) || password == null ? "123456" : password;
    }

}

